home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / penguin_dinner.swf / scripts / __Packages / classes / ui / DayStartCaption.as < prev    next >
Text File  |  2008-03-17  |  1KB  |  39 lines

  1. class classes.ui.DayStartCaption extends classes.ui.AbstractWidget
  2. {
  3.    function DayStartCaption()
  4.    {
  5.       super();
  6.       this.doLater(this.init);
  7.    }
  8.    function init()
  9.    {
  10.       this.day_num_tf = this.caption.day_num_tf;
  11.       this.goal_tf = this.caption.goal_tf;
  12.       this.day_num_tf.text = "Day " + (classes.core.SOManager.getInstance().__get__totalDaysPlaying() + 1);
  13.       this.goal_tf.text = "You need to make " + classes.utils.Utils.formattedCurrency(classes.game.GameData.__get__DAY_GOAL());
  14.       this.startLocalLoop(this.update);
  15.       this.animator = new classes.core.Animator([this.blinds]);
  16.       this.blinds.setAnimationState("state_fixed");
  17.       this.localConv = com.potapenko.managers.Conv.create();
  18.       this.localConv.addPause(1000);
  19.       this.localConv.put(this.blinds,"animate",1500,["state_open",classes.movieclip.AnimatedClip.STATE_DEFAULT]);
  20.       var _loc2_ = 10;
  21.       while(_loc2_ >= 0)
  22.       {
  23.          this.localConv.put(this.caption,"_alpha","2",_loc2_ * 10);
  24.          _loc2_ = _loc2_ - 1;
  25.       }
  26.       this.localConv.put(classes.core.WidgetManager.getInstance(),"unlockAllGlobal",0);
  27.       this.localConv.put(this,"dispose",0);
  28.    }
  29.    function update()
  30.    {
  31.       this.animator.update();
  32.    }
  33.    function dispose()
  34.    {
  35.       this.animator.dispose();
  36.       super.dispose();
  37.    }
  38. }
  39.